import 'package:flutter_app/generated/json/base/json_convert_content.dart';
import 'package:flutter_app/bean/base_respone_entity.dart';

BaseResponse $BaseResponseFromJson(Map<String, dynamic> json) {
	final BaseResponse baseResponse = BaseResponse();
	final int? status = jsonConvert.convert<int>(json['status']);
	if (status != null) {
		baseResponse.status = status;
	}
	final String? message = jsonConvert.convert<String>(json['message']);
	if (message != null) {
		baseResponse.message = message;
	}
	final dynamic? data = jsonConvert.convert<dynamic>(json['data']);
	if (data != null) {
		baseResponse.data = data;
	}
	return baseResponse;
}

Map<String, dynamic> $BaseResponseToJson(BaseResponse entity) {
	final Map<String, dynamic> data = <String, dynamic>{};
	data['status'] = entity.status;
	data['message'] = entity.message;
	data['data'] = entity.data;
	return data;
}